﻿using System;
using System.Collections.Generic;

namespace Keyki.NefClass.Kernel.Fuzzy.FuzzySet
{
    public abstract class AbstractFuzzySet
    {

        /// <summary>
        /// Initialize parametrs
        /// </summary>
        /// <param name="collection">learning sample</param>
        public abstract void Init(IEnumerable<double> collection);
        
        /// <summary>
        /// Count membership function for value
        /// </summary>
        /// <param name="value">value</param>
        /// <returns>value of membership function</returns>
        public abstract double Compute(double value);

        public abstract AbstractFuzzySet Clone();
    }

//AbstractFuzzySet
}

//Keyki.NefClass.Kernel.Fuzzy